<%@ Page PathInChannel="ajax/teacher/apply{Ext}" RunAt="Execute" %>
<ali:Get ID="Me" Mark="User" Object="User" Guid="User['ID']"/>
<ali:List ID="Contact" Mark="Company" Object="Contact" Page="1" PageSize="1" Condition="CompanyID=SubSite[CompanyID] and UserID=User['ID']" />
{
	<%If Contact[Count] > 0%>
		"id":<%=Contact[InnerID]%>
		,"name":"<%=Contact[Name]%>"
		,"mobile":"<%=Contact[Mobile]%>"
		,"head":"<%=Me[Head]%>"
	<%Else%>
		"name":"<%=Me[RealName]%>"
		,"mobile":""
		,"head":"<%=Me[Head]%>"
	<%EndIf%>

	<ali:List Mark="Course" Object="Teacher" Page="1" PageSize="1" Condition="UserID=User['ID']">
		<ali:Record>
			,"teacherId":<%=InnerID%>
		</ali:Record>
	</ali:List>
}
